#!/bin/sh
clear
cd BD
pwd
propel-gen ./ creole
replace 'onDelete="RESTRICT"' '' 'onUpdate="RESTRICT"' '' < schema.xml > schema2.xml
rm -v schema.xml
mv -v schema2.xml schema.xml
propel-gen
cd ../app/om
pwd
rm -v *.php
cp -v ../../BD/build/classes/om/*.php .
cd ../map
pwd
rm -v *.php
cp -v ../../BD/build/classes/map/*.php .
cd ../../
pwd
svn commit -m "Commit automatic, generació propel" --non-interactive


